<?php
//格式调解

function p($var){   
    echo "<per>";
    print_r($var);
    echo '</per>';
    exit;
}
function phiz_replace($content){
    $phiz = array(
        "[抱抱]"   => '<img src="/demo/Public/Images/phiz/baobao.gif" />',
        "[害羞]"   => '<img src="/demo/Public/Images/phiz/haixiu.gif" alt="害羞" />',
        "[酷]"     => '<img src="/demo/Public/Images/phiz/ku.gif" alt="酷" />',
        "[嘻嘻]"   => '<img src="/demo/Public/Images/phiz/xixi.gif" alt="嘻嘻" />',
        "[太开心]" => '<img src="/demo/Public/Images/phiz/taikaixin.gif" alt="太开心" />',
        "[偷笑]"   => '<img src="/demo/Public/Images/phiz/touxiao.gif" alt="偷笑" />',
        "[钱]"     => '<img src="/demo/Public/Images/phiz/qian.gif" alt="钱" />',
        "[花心]"   => '<img src="/demo/Public/Images/phiz/huaxin.gif" alt="花心" />',
        "[挤眼]"   => '<img src="/demo/Public/Images/phiz/jiyan.gif" alt="挤眼" />'
    );
    $content =  strtr($content,$phiz);
    return $content;
}
/*
 * <img src="__PUBLIC__/Images/phiz/zhuakuang.gif" alt="抓狂" />
					<img src="__PUBLIC__/Images/phiz/baobao.gif" alt="抱抱" />
					<img src="__PUBLIC__/Images/phiz/haixiu.gif" alt="害羞" />
					<img src="__PUBLIC__/Images/phiz/ku.gif" alt="酷" />
					<img src="__PUBLIC__/Images/phiz/xixi.gif" alt="嘻嘻" />
					<img src="__PUBLIC__/Images/phiz/taikaixin.gif" alt="太开心" />
					<img src="__PUBLIC__/Images/phiz/touxiao.gif" alt="偷笑" />
					<img src="__PUBLIC__/Images/phiz/qian.gif" alt="钱" />
					<img src="__PUBLIC__/Images/phiz/huaxin.gif" alt="花心" />
					<img src="__PUBLIC__/Images/phiz/jiyan.gif" alt="挤眼" />
 */
?>